package com.ruoyi.gp.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】业务对象 community
 *
 * @author ruoyi
 * @date 2024-03-04
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CommunityBo extends BaseEntity {

    /**
     * 社区信息id
     */
    @NotNull(message = "社区信息id不能为空", groups = { EditGroup.class })
    private Long communityId;

    /**
     * 社区信息名
     */
    @NotBlank(message = "社区信息名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String communityName;


    /**
     * 社区状态（0正常1停用）
     */
    @NotBlank(message = "社区状态（0正常1停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 邮箱
     */
    @NotBlank(message = "邮箱不能为空", groups = { AddGroup.class, EditGroup.class })
    private String email;

    /**
     * 社区管理员id
     */
    @NotNull(message = "社区管理员id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sysUserId;

    /**
     * 负责人
     */
    @NotBlank(message = "负责人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String leader;

    /**
     * 手机
     */
    @NotBlank(message = "手机不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 地址
     */
    @NotBlank(message = "地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;


}
